package com.rubulls.report;

public class TableInfo {
	
	private int[] table_pos; //For simple table
	
	TableInfo(int[] pos){
		this.table_pos = pos;
	}
	
	public int CellCount(){
		return table_pos.length;
	}
	
	public int[] CellWidths(){
		int[] widths =  new int[table_pos.length];
		int prev = 0;
		int count = 0;
		for( int e :  table_pos){
			widths[count] = e - prev;
			prev = e;
			count++;
		}
		return widths;
	}

}
